package guoanmaker.operator.business.model;

import java.util.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_provide_room")
public class ProvideRoom  extends IdEntity{
	private String roomName;//空间名称
	
	private String describeAsk;//空间描述
	
	private String roomCodes;//空间编号
	
	private Integer roomCode;//空间编号后缀
	@OneToOne
	private ProvideArea area;//县标识
	
	@OneToOne
	private ProvideCity city;//市标识
	
	@OneToOne
	private ProviderProvince province;//省级标识
	
	@Column(name="address")
	private String address;//详细地址
	
	@Column(name="lat")
	private String lat;//纬度
	
	@Column(name="lng")
	private String lng;//经度
	
	private String auditOpinion;//审核意见
	
	private String violationReasons;//违规原因
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date roomTime;
	
	private Integer roomState; //空间状态   1:待审核 2:审核通过 3:审核失败 4:下架 5:冻结 6:删除状态
	
	private String roomlogo;// 空间logo
	
	private String spaceDetail; //空间详情
	
	private Integer roomUnread;//空间未读记录       1:已读       0：未读
	
	private String roomImgOne;//图片1
	
	private String roomImgTwo;//图片2
	
	private String roomImgThree;//图片3
	
	private String roomImgFour;//图片4
	
	private String roomImgFive;//图片5

	private String complement; //配套
	
	@OneToOne
	@JoinColumn(name="business_id")
	private ProviderBusiness providerBusiness;//所属商户

}
